<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>我的账户</title>
    
    <link rel="shortcut icon" href="/static/favicon.ico"/>
    <link rel="stylesheet" href="/static/front/fonts/iconfont.css">
    <link rel="stylesheet" href="/static/front/css/base_new.css">
    <link rel="stylesheet" href="/static/front/css/library.css">
    <link rel="stylesheet" href="/static/front/css/style.css">
    <script src="/static/front/js/jquery-1.11.1.min.js"></script>
    <script src="/static/front/js/jquery.countdown.js"></script>
    <script src="/static/front/js/js.js"></script>
    <!--[if lt IE 9]>
    <script src="/static/front/js/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script type="text/javascript" src="plugIn/PIE.js"></script>
    <![endif]-->
  	<style type="text/css">
  		#myAccountMain .userInfo .icon li .active{color:#6dbd45;font-size:24px;}
  		
  		.Tab-shuaixuan {
		    cursor: pointer;
    		padding: 5px 30px;
		    border: #4db0c2 1px solid;
		    background: #5dc0d2;
		    color: #fff;
		    border-radius: 3px;
		    -webkit-border-radius: 3px;
		    -moz-border-radius: 3px;
		    -ms-border-radius: 3px;
		    text-align: center;
		    line-height: 25px;
		}
  	</style>
</head>

<body>	
    <div class="content">
		<#include "../base/top.ftl" />
       <div id="myAccountMain" class="cnt clearfix layoutMain">
		   <#include "base1.ftl" />
           <div class="info fr">
               <div class="userInfo">
                   <div class="defaultavatar">
                       <span class=""><img src="${_front_images}/defaultavatar.png" style="width: 72px;"></span>
                   </div>
                   <p><em>${user.username!}</em>　欢迎您！<u>注册时间：<i>${(user.createTime?string("yyyy-MM-dd HH:mm:ss"))!}</i></u></p>
                   <div class="msg">
                       <table class="fl">
                           <tr>
                               <th>会员等级</th>
                               <th>积分</th>
                           </tr>
                           <tr>
                               <td class="mail">
	                            	${level.name}							   
							   </td>
                               <td class="integral">${account.score}</td>
                           </tr>
                       </table>
                       <ul class="icon fr">
                           <li>
                           		<#if authMap["phone"]==1>
                           			<a href="#" class="iconfont active" title="手机号">&#xe60d;</a>
                           		<#else>
                           			<a href="/account/safe" class="iconfont" title="手机号">&#xe60d;</a>	
                           		</#if>
                           	</li>
                           <li>
                           		<#if authMap["email"]==1>
	                           		<a href="#" class="iconfont active" title="邮箱">&#xe618;</a>
                           		<#else>
                           			<a href="/account/safe" class="iconfont" title="邮箱">&#xe618;</a>
                           		</#if>                           		
                           	</li>
                           <li>
                           		<#if authMap["id5"]==1>
	                           		<a href="#" class="iconfont active" title="身份证">&#xe614;</a>
                           		<#else>
                           			<a href="/account/safe" class="iconfont" title="身份证">&#xe614;</a>
                           		</#if>                           		
                           	</li>     
                           <li>
                           		<#if authMap["card"]==1>
	                           		<a href="#" class="iconfont active" title="银行卡">&#xe617;</a>
                           		<#else>
                           			<a href="/account/safe" class="iconfont" title="银行卡">&#xe617;</a>
                           		</#if>                           		
                           	</li>                              	                      	
                           <li class="last">
                           		<em class="fl">安全等级：</em>
                           		<#if authMap["count"]==4>
                           			<span class="fr">非常高</span>
                           		<#elseif authMap["count"]==3>
                           			<span class="fr">较高</span>
                           		<#elseif authMap["count"]==2>
                           			<span class="fr">一般</span>
                           		<#elseif authMap["count"]==1>
                           			<span class="fr">较低</span>                           			                           			
                           		</#if>
                           </li>
                       </ul>
                   </div>
               </div>
               <div class="accountDetailsWrap">
                   <div class="clearfix title">
                       <h3 class="fl">帐户详情</h3>
                   </div>
                   <ul class="accountDetails clearfix">
                       <li class="one fl">
                           <dl>
                               <dt>帐户总额</dt>
                               <dd class="total">
								<#if account?exists & account.totalAmount?exists>
		                    		￥${account.totalAmount?string('0.00')}
		                    	<#else>
		                    	 	￥0.00
			                    </#if>	
							   </dd>
                           </dl>
                           <dl>
                               <dt><img src="${_front_images}/haobao.png" alt=""></dt>
                               <dd class="hongbao">${account.stayAmount?string('0.00')}</dd>
                           </dl>
                           <p>(待领奖金)</p>
                       </li>
                       <li class="two fl">
                           <dl class="clearfix">
                               <dt class="fl dt">可用余额</dt>
                               <dd class="dd availableAmount fl">
		                    	<#if account?exists & account.balance?exists>
		                    		￥${account.balance?string('0.00')}
		                    	<#else>
		                    		￥0.00
		                    	</#if>							   
							   </dd>
                           </dl>
                           <dl class="clearfix">
                               <dt class="fl dt">冻结金额</dt>
                               <dd class="dd freezingAmount fl">
			                    	<#if account?exists & account.freezen?exists>
			                    		￥${account.freezen?string('0.00')}
			                    	<#else>
			                    	 	￥0.00
				                    </#if>
								</dd>
                           </dl>
                           <dl class="clearfix">
                               <dt class="dt fl">待收金额</dt>
                               <dd class="dd fl amountToBeReceived">
			                    	<#if detail?exists & detail.awaitTotal?exists>
			                    		￥${detail.awaitTotal?string('0.00')}
			                    	<#else>
			                    	 	￥0.00
				                    </#if>
							   </dd>
                           </dl>
                           <dl class="clearfix">
                               <dt class="dt fl">待还金额</dt>
                               <dd class="dd fl amountToBeReceived">
			                    	<#if detail?exists & detail.payFund?exists & detail.payInterest?exists>
			                    		￥${(detail.payFund+detail.payInterest)?string('0.00')}
			                    	<#else>
			                    	 	￥0.00
				                    </#if>                               
                               </dd>
                           </dl>
                           <dl class="clearfix btn">
                               <dt class="fl"><a href="/account/recharge" class="recharge">充值</a></dt>
                               <dd class="fr"><a href="/account/withdraw" class="withdrawals">提现</a></dd>
                           </dl>
                       </li>
                       <li class="three fl">
                           <dl class="Rtop btn">
                               <dt style="padding-top: 45px;">您的富友账户名:${user.phone!}</dt>
                               <dd class="money" style="margin-top: 20px;">
                               	   <a class="Tab-shuaixuan" href="https://jzh-test.fuiou.com/jzh/login.jsp" target="_blank">去登录</a>
                               </dd>
                           </dl>                       
                           <dl class="Rtop">
                               <dt style="padding-top: 45px;">您的累计投资金额</dt>
                               <dd class="money">
                               	    ￥<em>			                    	
                               	    <#if sumTenderAmount?exists >
			                    		${sumTenderAmount?string('0.00')}
			                    	<#else>
			                    	 	0.00
				                    </#if>
				                   </em>
                               </dd>
                           </dl>                       
                           <dl >
                               <dt style="padding-top: 45px;">已为您赚取收益</dt>
                               <dd class="money">
                               		￥<em>
	                               	    <#if sumTenderInterest?exists >
				                    		${sumTenderInterest?string('0.00')}
				                    	<#else>
				                    	 	0.00
					                    </#if>                               		
								     </em>
                               </dd>
                           </dl>

                       </li>
                   </ul>
               </div>
               <div class="item">
                   <div class="Tab clearfix">
                       <p class="left fl">
                           <span class="collectedTab active">近3笔待收</span>
                       </p>
                   </div>
                   <table class="collected tabLibrary"  border="0" cellspacing="0" cellpadding="0" >
                       <tr>
                           <th class="one">借款标 | 回款日期</th>
                           <th class="two">借款者</th>
                           <th class="three">期数</th>
                           <th class="four">待收总额</th>
                           <th class="five">待收本金</th>
                           <th class="six">待收利息</th>
                           <th class="seven">状态</th>
                       </tr>
                        <#if (awaitList?exists) && (awaitList?size>0)>
                            	<#list awaitList as model>
			                       <tr>
			                           <td class="one">
			                               ${model.title} <br>
			                               <em>${model.expectDate?string("yyyy-MM-dd HH:mm:ss")}</em>
			                           </td>
			                           <td class="two">${model.borrowRealName}</td>
			                           <td class="three">${model.periodIndex}/${model.period}</td>
			                           <td class="four">
		                               	    <#if model.notPaymentTotal?exists >
					                    		${model.notPaymentTotal?string('0.00')}
					                    	<#else>
					                    	 	0.00
						                    </#if>  
			                           	</td>
			                           <td class="five">
		                               	    <#if model.notPaymentFund?exists >
					                    		${model.notPaymentFund?string('0.00')}
					                    	<#else>
					                    	 	0.00
						                    </#if> 
			                           </td>
			                           <td class="six">
		                               	    <#if model.notPaymentInterest?exists >
					                    		${model.notPaymentInterest?string('0.00')}
					                    	<#else>
					                    	 	0.00
						                    </#if> 
										</td>
			                           <td class="seven" >未还</td>
			                       </tr>		                            		
                            	</#list>
                        <#elseif (awaiteChaneList?exists) && (awaiteChaneList?size>0)>
                            	<#list awaiteChaneList as model>
			                       <tr>
			                           <td class="one">
			                               ${model.title} <br>
			                               <em>${model.expectDate?string("yyyy-MM-dd HH:mm:ss")}</em>
			                           </td>
			                           <td class="two">${model.borrowRealName}</td>
			                           <td class="three">${model.periodIndex}/${model.period}</td>
			                           <td class="four">
		                               	    <#if model.notPaymentTotal?exists >
					                    		${model.notPaymentTotal?string('0.00')}
					                    	<#else>
					                    	 	0.00
						                    </#if>  
			                           	</td>
			                           <td class="five">
		                               	    <#if model.notPaymentFund?exists >
					                    		${model.notPaymentFund?string('0.00')}
					                    	<#else>
					                    	 	0.00
						                    </#if> 
			                           </td>
			                           <td class="six">
		                               	    <#if model.notPaymentInterest?exists >
					                    		${model.notPaymentInterest?string('0.00')}
					                    	<#else>
					                    	 	0.00
						                    </#if> 
										</td>
			                           <td class="seven" >未还</td>
			                       </tr>		                            		
                            	</#list>
                        <#else>
                            	<tr>
                            		<td class="one" colspan="7">
                            			暂无数据
                            		</td>
                            	</tr>		
                        </#if> 
                   </table>
               </div>
           </div>
       </div>
	   <div id="footer">
          <div class="content">      
			<#include "../base/foot.ftl" />
          </div>
       </div>       
</div>
</body>

<script>
	<#if authMap["count"] lt 4>
		$(".last span").css('cursor','pointer');
		$(".last span").click(function(){
			window.location.href="/account/safe";
		});
	</#if>
</script>
</html>    